define [
	'jquery'
	'sammy/plugins/sammy.template-0.7.1.min.js'
	'jquery.couch.js'
	'helper'
	'lib/jquery.jnotify.min'
], ($, undef, undef, H, undef) ->
	$.fn.mb_jnotify = () ->
			
			$.subscribe "mb.msg", (e, {msg:msg,delay:delay,sticky:sticky,type:type}) ->
				
				$.jnotify msg, 4000 if not delay? and not sticky? and not type?
				$.jnotify msg, delay if delay? and not sticky? and not type?
				$.jnotify msg, type if not delay? and not sticky? and type?
				$.jnotify msg, sticky if not delay? and sticky? and not type?
				$.jnotify msg, type, sticky if not delay? and sticky? and type?
					
		return @
	return
